  <!--form name="login_form" action="/login/" method="post">  
    
      <div id="login_box" class="{if $mode == 'user'}hidden{/if}">
          <div class="item">
            <input name="login" id="login" value="" type="text" /><span class="s-item-1">электропочта</span>
          </div>
          <div class="item">
            <input type="password" value="" name="pass" id="pass" /><span class="s-item-2">пароль</span> 
          </div> 
      </div>
     
      <div id="logout_box" class="{if $mode == 'guest'}hidden{/if}">
        <p><a href="/logout/">Выйти</a></p>
      </div>
     
  </form--> 
  
    <form id="form-1" name="login_form" action="/login/" method="post">
      <div class="success"><div class="success_txt">Contact form submitted!<br /><strong> We will be in touch soon.</strong></div></div>
      <fieldset>
        <div id="login_box" class="{if $mode == 'user'}hidden{/if}">
          <label class="name"><input type="text" value="Имя:" name="login" id="login">
          <strong class="clear"></strong>
          <span class="error"><!--*This is not a valid name.--></span><span class="empty">*Это обязательное поле.</span></label>
          <label class="email"><input type="text" value="Электропочта:" type="password"   name="pass" id="pass" >
          <strong class="clear"></strong>
          <span class="error"><!--*This is not a valid email address.--></span><span class="empty">*Это обязательное поле.</span></label>
          
          <div class="btns"><a data-type="submit" class="button" href="#">Войти</a></div>
        </div>  
        
        <div id="logout_box" class="{if $mode == 'guest'}hidden{/if}">
          <!--p><a href="/logout/">Выйти</a></p-->
          <div class="btns"><a data-type="submit" class="button" href="/logout/">Выйти</a></div>
        </div>
      </fieldset>
    </form>